package ru.spbau.goncharova.chat.client.serverMessages;

import ru.spbau.goncharova.chat.client.Client;
import ru.spbau.goncharova.chat.protocol.ProtocolHeader;

import java.nio.ByteBuffer;

public class LoginReplyMessage extends ServerMessage {

    public final String message;

    public LoginReplyMessage(ProtocolHeader header, ByteBuffer messageBuffer) {
        super(header, messageBuffer);
        message = new String(messageBuffer.array(), Client.CLIENT_CHARSET);
    }
}
